#!/usr/bin/env python
# coding=utf-8
'''
# @Created on : 2016/04/17 17:02
# @Author     : ldf (ldf@eehello.com)
# @Link       : http://www.eehello.com
# @Version    : 
# 本程序在python2.7下测试通过
'''

import pickle

def run(kahao):
    flag = 1
    while flag:
        with open('backgroud/ka_mon', 'rb') as fm:
            ka_mon_l = pickle.load(fm)
            ka_mon = ka_mon_l[kahao]
        print("您目前的额度为：%s，取现手续费为%%5" % ka_mon)
        print("请问您要取现多少？返回上一菜单请输入'q'")
        qu = raw_input('取款：')
        if qu == 'q':
            flag = 0
        else:
            ka_mon_l[kahao] = ka_mon - int(qu) - int(qu)*0.05
            with open('backgroud/ka_mon', 'wb') as fw:
                pickle.dump(ka_mon_l, fw)

'''
def run(kahao):
    print('test')
'''
